From: Florian Müllner Date: Wed, 12 Nov 2014 20:21:44 +0000 (+0100) Subject: shellDBus: Change AcceleratorActivated signature X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1930 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2aa4fb02dd9c568038d12fe609252b6934367e76;p=gnome-shell.git shellDBus: Change AcceleratorActivated signature Adding new parameters to the signal currently will break keybindings until gnome-settings-daemon is updated to the new API as well. Put additional parameters into a dictionary instead to make future extensions easier. https://bugzilla.gnome.org/show_bug.cgi?id=711682 --- diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js index 45a2054cb..147b5f4e9 100644 --- a/js/ui/shellDBus.js +++ b/js/ui/shellDBus.js @@ -44,8 +44,7 @@ const GnomeShellIface = ' \ \ \ \ - \ - \ + \ \ \ \ @@ -196,11 +195,13 @@ const GnomeShell = new Lang.Class({ let connection = this._dbusImpl.get_connection(); let info = this._dbusImpl.get_info(); + let params = { 'device-id': GLib.Variant.new('u', deviceid), + 'timestamp': GLib.Variant.new('u', timestamp) }; connection.emit_signal(destination, this._dbusImpl.get_object_path(), info ? info.name : null, 'AcceleratorActivated', - GLib.Variant.new('(uuu)', [action, deviceid, timestamp])); + GLib.Variant.new('(ua{sv})', [action, params])); }, _grabAcceleratorForSender: function(accelerator, flags, sender) {